package com.infolab.aims.web.form;

import java.util.ArrayList;
import java.util.List;

import javax.validation.constraints.NotNull;

import org.apache.commons.collections.FactoryUtils;
import org.apache.commons.collections.list.LazyList;
import org.hibernate.validator.constraints.NotEmpty;

import com.infolab.aims.common.bean.AbstractForm;
import com.infolab.aims.domain.SystemCodeType;

public class SystemCodeForm  extends AbstractForm {
	
	private SystemCodeType systemCodeType;
	
	@NotEmpty(message="{error.empty}")
	private String systemCode;
	
	private List<String> systemCodeValue = LazyList.decorate(new ArrayList(),
		      FactoryUtils.instantiateFactory(String.class));

	@NotNull(message="{error.empty}")
	private List<String> selSystemCodeValue = LazyList.decorate(new ArrayList(),
		      FactoryUtils.instantiateFactory(String.class));


	public SystemCodeType getSystemCodeType() {
		return systemCodeType;
	}


	public void setSystemCodeType(SystemCodeType systemCodeType) {
		this.systemCodeType = systemCodeType;
	}



	public List<String> getSystemCodeValue() {
		return systemCodeValue;
	}


	public void setSystemCodeValue(List<String> systemCodeValue) {
		this.systemCodeValue = systemCodeValue;
	}

	public List<String> getSelSystemCodeValue() {
		return selSystemCodeValue;
	}

	public void setSelSystemCodeValue(List<String> selSystemCodeValue) {
		this.selSystemCodeValue = selSystemCodeValue;
	}

	public String getSystemCode() {
		return systemCode;
	}


	public void setSystemCode(String systemCode) {
		this.systemCode = systemCode;
	}
	
	

	
}
